package org.dromara.system.controller.system;

import lombok.RequiredArgsConstructor;
import org.dromara.common.core.domain.R;
import org.dromara.common.web.core.BaseController;
import org.dromara.system.domain.bo.SysAreaBo;
import org.dromara.system.domain.vo.SysAreaVo;
import org.dromara.system.service.ISysAreaService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 地区表(SysArea)表控制层
 *
 * @author ckk
 * @since 2025-07-12 10:45:35
 */
@RestController
@RequestMapping("/system/area")
@RequiredArgsConstructor
public class SysAreaController extends BaseController {
    /**
     * 服务对象
     */
    private final ISysAreaService sysAreaService;

    /**
     * 地域检索-三级联动
     */
    @GetMapping("selectArea")
    public R<List<SysAreaVo>> selectArea(SysAreaBo bo) {
        return R.ok(sysAreaService.selectArea(bo));
    }

}

